package com.passcheck;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZhangHaiWen
 * @title: PasscheckApplication
 * @projectName minipasscheck
 * @description: 服务启动类
 * @date 2020/12/1615:18
 */

@RestController
@SpringBootApplication
@EnableJpaRepositories("com.dao.repository")
@ComponentScan(basePackages = {"com.passcheck","com.service"})
public class PasscheckApplication {

    @RequestMapping(value = "/")
    public String home() {
        return "通行证服务启动成功";
    }


    public static void main(String[] args) {
        SpringApplication.run(PasscheckApplication.class,args);
    }
}
